package so.sao.shop.supplier.pojo.input.authorized;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * <p>Version: supplier V1.1.0 </p>
 * <p>Title: RoleInput</p>
 * <p>Description: 增加、修改色入参</p>
 *
 * @author: tengfei.zhang
 * @Date: Created in 2017/11/3 10:21
 */
public class RoleInput {

    private Long id;
    /**
     * 角色名称
     */
    @NotEmpty(message = "角色名称不能为空")
    private String name;
    /**
     * 是否是管理员1:管理员，0:供应商
     */
    private String isAdmin;
    /**
     * 操作人id
     */
    private Long operatorId;
    /**
     * 权限id集合
     */
    @NotNull(message = "权限id不能为空")
    private Long[] permissionsIds;
    /**
     * 页数
     */
    private Integer pageNum;
    /**
     * 每页长度
     */
    private Integer pageSize;
    /**
     * 当前登录用户id
     */
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(String isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Long[] getPermissionsIds() {
        return permissionsIds;
    }

    public void setPermissionsIds(Long[] permissionsIds) {
        this.permissionsIds = permissionsIds;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
